#pragma once
#include "imagelistex.h"
class SYSINTERFACEPRODLLEXPORT CGifShowEx :
	public CImageListEx
{
public:
	CGifShowEx(void);
	~CGifShowEx(void);
	int
		Load(LPCWSTR pszFileName, int nImageCount);

	
protected:
	Gdiplus::Image* m_pImage;
	GUID* m_pDimensionIDs;
	UINT m_FrameCount;
	Gdiplus::PropertyItem* m_pItem;
	UINT m_iCurrentFrame;

public:
	int 
		Draw(HDC dc, int nImageIndex, int destx, int desty
				, DWORD drawStyle = DS_NORMAL, float alpha = 1);

	
public:
	void Play();
	void NextPlay();

};

